import './home.scss'
import img1 from './13.jpg'
import { Link, Outlet } from "react-router-dom";
// sfc 快捷键 函数组件
const go =()=>{
    
}
const  Home2 = () =>  {
        return (
            <>
                <div className="fathers">
                    <ul className="aside">
                        <li className="img">
                            <img src={img1} title='头像' alt="yoyo" />
                        </li>
                        <Link to='/home2/news1'>
                            <li onClick={go}>
                                首页
                            </li>
                        </Link>    
                        <Link to='/home2/news2'>        
                            <li>
                                访客列表
                            </li>
                        </Link>

                    </ul>
                    <div className="a">
                        <div className="header">header</div>
                        <div className="content">
                            {/* 路由占位符 */}
                            <Outlet></Outlet>
                        </div>
                    </div>
                </div>
            </>
        );
    }

export default Home2
